<ui:composition xmlns="http://www.w3.org/1999/xhtml"
	xmlns:h="http://java.sun.com/jsf/html"
	xmlns:f="http://java.sun.com/jsf/core"
	xmlns:ui="http://java.sun.com/jsf/facelets"
	xmlns:p="http://primefaces.prime.com.tr/ui"
	template="/WEB-INF/jsf/template.xhtml">

	<ui:define name="content">
		<h:form prependId="false">
			<p:commandButton image="back" ajax="false" immediate="true" style="margin-right:20px;" value="#{rolestiersmsgs['navigation.back']}" action="/jsf/rolestiers/listRolesTierss.xhtml"/>
		
			<p:panel header="#{rolestiersmsgs['rolestiers.title']} Details" style="margin-top:10px">
				<p:messages />
				<h:panelGrid id="detail" columns="2" styleClass="grid" columnClasses="label,value">
						<h:outputText value="#{rolestiersmsgs['rolestiers.rotrole.title']}:" />
							<h:outputText value="#{RolesTiersComponent.rolestiers.rotRole}"/>
						<h:outputText value="#{rolestiersmsgs['rolestiers.rottiers.title']}:" />
							<h:outputText value="#{RolesTiersComponent.rolestiers.rotTiers}"/>
						<h:outputText value="#{rolestiersmsgs['rolestiers.rotdescriptif.title']}:" />
							<h:outputText value="#{RolesTiersComponent.rolestiers.rotDescriptif}"/>
						<h:outputText value="#{rolestiersmsgs['rolestiers.rotdatedebut.title']}:" />
							<h:outputText value="#{RolesTiersComponent.rolestiers.rotDateDebut}"  converter="dateConverterForCalendar" />
						<h:outputText value="#{rolestiersmsgs['rolestiers.rotdatefin.title']}:" />
							<h:outputText value="#{RolesTiersComponent.rolestiers.rotDateFin}"  converter="dateConverterForCalendar" />
				</h:panelGrid>
			</p:panel>

			<p:panel header="#{rolestiersmsgs['tiers.title']} Details" style="margin-top:10px">
				<p:messages />
				<h:panelGrid id="tiers" columns="2" styleClass="grid" columnClasses="label,value" rendered="#{RolesTiersComponent.rolestiers.tiers != null}" >
					<h:outputText value="#{rolestiersmsgs['tiers.tietiers.title']}:" />
							<h:outputText value="#{RolesTiersComponent.rolestiers.tiers.tieTiers}"/>
					<h:outputText value="#{rolestiersmsgs['tiers.tieidentclient.title']}:" />
							<h:outputText value="#{RolesTiersComponent.rolestiers.tiers.tieIdentClient}"/>
					<h:outputText value="#{rolestiersmsgs['tiers.tietypetiers.title']}:" />
							<h:outputText value="#{RolesTiersComponent.rolestiers.tiers.tieTypeTiers}"/>
					<h:outputText value="#{rolestiersmsgs['tiers.tielibexterne.title']}:" />
							<h:outputText value="#{RolesTiersComponent.rolestiers.tiers.tieLibExterne}"/>
					<h:outputText value="#{rolestiersmsgs['tiers.tienationalite.title']}:" />
							<h:outputText value="#{RolesTiersComponent.rolestiers.tiers.tieNationalite}"/>
					<h:outputText value="#{rolestiersmsgs['tiers.tietelfix.title']}:" />
							<h:outputText value="#{RolesTiersComponent.rolestiers.tiers.tieTelFix}"/>
					<h:outputText value="#{rolestiersmsgs['tiers.tietelbureau.title']}:" />
							<h:outputText value="#{RolesTiersComponent.rolestiers.tiers.tieTelBureau}"/>
					<h:outputText value="#{rolestiersmsgs['tiers.tietelportable.title']}:" />
							<h:outputText value="#{RolesTiersComponent.rolestiers.tiers.tieTelPortable}"/>
					<h:outputText value="#{rolestiersmsgs['tiers.tiefax.title']}:" />
							<h:outputText value="#{RolesTiersComponent.rolestiers.tiers.tieFax}"/>
					<h:outputText value="#{rolestiersmsgs['tiers.tieemail.title']}:" />
							<h:outputText value="#{RolesTiersComponent.rolestiers.tiers.tieEMail}"/>
					<h:outputText value="#{rolestiersmsgs['tiers.tiedatecreation.title']}:" />
							<h:outputText value="#{RolesTiersComponent.rolestiers.tiers.tieDateCreation}"  converter="dateConverterForCalendar" />
					<h:outputText value="#{rolestiersmsgs['tiers.tieusercreation.title']}:" />
							<h:outputText value="#{RolesTiersComponent.rolestiers.tiers.tieUserCreation}"/>
				</h:panelGrid>
				<h:panelGrid columns="2" styleClass="grid" columnClasses="label,value" rendered="#{RolesTiersComponent.rolestiers.tiers != null}" >
					<p:commandButton image="edit" ajax="false" style="margin-right:20px;" value="#{rolestiersmsgs['navigation.edit']}" action="#{RolesTiersComponent.editRolesTiersTiers(RolesTiersComponent.rolestiers.rotRole, RolesTiersComponent.rolestiers.rotTiers, RolesTiersComponent.rolestiers.tiers.tieTiers)}"/>
					<p:commandButton image="delete" ajax="false" style="margin-right:20px;" value="#{rolestiersmsgs['navigation.delete']}" action="#{RolesTiersComponent.confirmDeleteRolesTiersTiers(RolesTiersComponent.rolestiers.rotRole, RolesTiersComponent.rolestiers.rotTiers, RolesTiersComponent.rolestiers.tiers.tieTiers)}"/>
				</h:panelGrid>
				<h:panelGrid columns="1" styleClass="grid" columnClasses="label,value" rendered="#{RolesTiersComponent.rolestiers.tiers == null}" >
					<p:commandButton image="new" ajax="false" style="margin-right:20px;" value="#{rolestiersmsgs['navigation.new']}" action="#{RolesTiersComponent.newRolesTiersTiers(RolesTiersComponent.rolestiers.rotRole, RolesTiersComponent.rolestiers.rotTiers)}"/>
				</h:panelGrid>
			</p:panel>
			<p:panel header="#{rolestiersmsgs['roles.title']} Details" style="margin-top:10px">
				<p:messages />
				<h:panelGrid id="roles" columns="2" styleClass="grid" columnClasses="label,value" rendered="#{RolesTiersComponent.rolestiers.roles != null}" >
					<h:outputText value="#{rolestiersmsgs['roles.rolrole.title']}:" />
							<h:outputText value="#{RolesTiersComponent.rolestiers.roles.rolRole}"/>
					<h:outputText value="#{rolestiersmsgs['roles.roldescription.title']}:" />
							<h:outputText value="#{RolesTiersComponent.rolestiers.roles.rolDescription}"/>
					<h:outputText value="#{rolestiersmsgs['roles.rolphysiquemorale.title']}:" />
							<h:outputText value="#{RolesTiersComponent.rolestiers.roles.rolPhysiqueMorale}"/>
				</h:panelGrid>
				<h:panelGrid columns="2" styleClass="grid" columnClasses="label,value" rendered="#{RolesTiersComponent.rolestiers.roles != null}" >
					<p:commandButton image="edit" ajax="false" style="margin-right:20px;" value="#{rolestiersmsgs['navigation.edit']}" action="#{RolesTiersComponent.editRolesTiersRoles(RolesTiersComponent.rolestiers.rotRole, RolesTiersComponent.rolestiers.rotTiers, RolesTiersComponent.rolestiers.roles.rolRole)}"/>
					<p:commandButton image="delete" ajax="false" style="margin-right:20px;" value="#{rolestiersmsgs['navigation.delete']}" action="#{RolesTiersComponent.confirmDeleteRolesTiersRoles(RolesTiersComponent.rolestiers.rotRole, RolesTiersComponent.rolestiers.rotTiers, RolesTiersComponent.rolestiers.roles.rolRole)}"/>
				</h:panelGrid>
				<h:panelGrid columns="1" styleClass="grid" columnClasses="label,value" rendered="#{RolesTiersComponent.rolestiers.roles == null}" >
					<p:commandButton image="new" ajax="false" style="margin-right:20px;" value="#{rolestiersmsgs['navigation.new']}" action="#{RolesTiersComponent.newRolesTiersRoles(RolesTiersComponent.rolestiers.rotRole, RolesTiersComponent.rolestiers.rotTiers)}"/>
				</h:panelGrid>
			</p:panel>
		</h:form>
	</ui:define>
</ui:composition>